package com.dyoud.api.user.dto;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

import com.dyoud.user.api.enums.BankTypeEnum;

/**
 * 添加银行卡并设置密码
 * 
 * @author Jonathan
 * @date 2018/03/12
 *
 */
public class AddBankInfoWithSettingsPayPasswordDto implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    @NotBlank(message = "持卡人姓名不能为空")
    private String cardholder;
    @NotBlank(message = "所属银行不能为空")
    private String bankName;
    @NotBlank(message = "银行卡号不能为空")
    private String no;
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    /**
     * 银行卡类型
     */
    private Integer type;

    /**
     * 短信验证码
     */
    @NotBlank(message = "短信验证码不能为空")
    private String code;

    /**
     * 支付密码
     */
    @NotBlank(message = "支付密码不能为空")

    private String payPassword;

    @NotBlank(message = "用户手机号")
    private String phone;

    @NotBlank(message = "身份证号不能为空")
    private String idCardNo;

    public String getCardholder() {
        return cardholder;
    }

    public void setCardholder(String cardholder) {
        this.cardholder = cardholder;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }
    
    

}
